<template>
	<div class="loading-container" v-if="show">
		<spinner type="android" slot="value"></spinner>
	</div>
</template>

<script>
import {Spinner} from 'vux'
export default {
	props:{
		show:{
			type:Boolean,
			required: true,
			default:false,
		}
	},
	components:{
		Spinner
	},
	data(){
		return {

		}
	}
}
</script>

<style lang="less" scoped>
	.loading-container{
		position: fixed;
		top: 0;
		right: 0;
		height: 100%;
		width: 100%;
		display: flex;
		justify-content:center;
		align-items:center;
	}
</style>